package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Permission;
import com.itheima.pojo.Role;

import java.util.List;

public interface RoleService {
    //删除角色
    void delete(Integer id);

    //分页查询
    public PageResult pageQuery(QueryPageBean queryPageBean);

    //添加角色
    public void add(Role role, Integer[] permissionIds);

    public Role findName(String name);


    Role findById(Integer id);

    List<Integer> findByRoleIdsByPermissionId(Integer id);

    //修改角色
    void edit(Role role, Integer[] permissionIds);
}
